90311: xfi:fact-explicit-dimensions

Documentation

Owners

Name Affiliation Email Start End
Wojciech Diakowski Fingo wojtekd@fingo.pl 07-06-2012 at 00:00:00

References

function definition

Test Case Variations


V-01 Test correct location dimension for Mount Kilimanjaro

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:QName* and count( $result ) eq 1 and $result eq QName('http://xbrl.org/formula/conformance/example','t:Location')

V-02 Test default location dimension for Vinson Massif

Documentation

Mt Vinson uses the Antarctica default dimension, so although it is not physically reported in the context, it is virtually reported due to the default for the dimension.

Inputs

Outputs

  • Result test: $result instance of xs:QName* and count( $result ) eq 1 and $result eq QName('http://xbrl.org/formula/conformance/example','t:Location')

V-03 Dimension can be located in either segment or scenario, for this variation appears in the segment.

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:QName* and count( $result ) eq 1 and $result eq QName('http://xbrl.org/formula/conformance/example','t:ExplDim1')

V-04 Dimension can be located in either segment or scenario but for this variation appears in the scenario instead of segment.

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:QName* and count( $result ) eq 1 and $result eq QName('http://xbrl.org/formula/conformance/example','t:ExplDim1')

V-05 Test multiple dimensions for fact.

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:QName* and count( $result ) eq 3 and index-of( $result, QName('http://xbrl.org/formula/conformance/example','eg:ExplDim1') ) ge 1 and index-of( $result, QName('http://xbrl.org/formula/conformance/example','eg:ExplDim2') ) ge 1 and index-of( $result, QName('http://xbrl.org/formula/conformance/example','eg:ExplDim3') ) ge 1

V-06 Test multiple dimensions for fact with default dimension.

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:QName* and count( $result ) eq 3 and index-of( $result, QName('http://xbrl.org/formula/conformance/example','eg:ExplDim1') ) ge 1 and index-of( $result, QName('http://xbrl.org/formula/conformance/example','eg:ExplDim2') ) ge 1 and index-of( $result, QName('http://xbrl.org/formula/conformance/example','eg:ExplDim3') ) ge 1

V-07 Test no dimensions for fact.

Documentation

Inputs

Outputs

  • Result test: empty( $result )

V-08 Wrong node to function

Documentation

XPath-defined error for node type incorrect.

Inputs

Outputs

  • Error code: xqt-err:XPTY0004

V-09 A sequence of items as argument

Documentation

XPath-defined error for node type incorrect arity of arguments.

Inputs

Outputs

  • Error code: xqt-err:XPTY0004

Revisions

Name On Details
Wojciech Diakowski 07-06-2012 at 00:00:00 Created the test case.